package pharmacy

class Drug {
    String id_Official;//Official Drug Code (Depended from local lows)
    /**
    String idfda;
    String ideu1;
    String ideu2;
    String idot1;
    String idot2;
    String category;//General category  that the drug is included (e.g Drugs for the nervous system diseases)
    String activeSubstance;//The name of the chemical substance that the drug consists of
    String commercialName;//The commercial name of a drug
    String shape//The shape that the drug is prescripted (e.g caps)
    String route;
    Float dose;//Mgr of active ingredient
    Float vol;//Standard Vol contain dose if drug is liquid
    Float recDose_kgr;//Recommended Dose (mgr) per Kgr
    Float recFrq_Day;//Recommended Frequency  per Kgr
    String dosage_Units;
    Float providerID;
    Float intPrice;
    Float tax;
    Float profitPercentage;
    Float otherPriceCalc;
    Float totalPrice;
    Float minEffectDose;
    Float minEffectDose_kgr;
    Float maxEffectDose_kgr;//Maximum drug dose per day per kgr or lb
    Float maxEffectDose;//Maximum drug dose per day
    String mainContrantications;
    String mainInteractions;
    **/
    static belongsTo=[category:DrugCategory];
    static hasMany = [drugWarehouses:DrugWarehouse,
                        quantityInPrescription:QuantityAndUse,
                        sellingDetails:SellingDetail,
                        components:DrugComponent,
                        comments:DrugComment];
    static constraints = {
        id_Official(blank:false, nullable:false,unique:true);
    }
}
